﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;

namespace WaterRevenueMS.Componnent.Data.Mapping.Charge
{
    partial class ChargeRecordMap
    {
        partial void ChargeRecordMapAppend()
        {
            this.HasKey(t => t.Id);
            this.Property(t => t.Liu_SH)
                .HasMaxLength(16);
            this.Property(t => t.Shou_FY)
                .HasMaxLength(10);
            this.Property(t => t.Bei_Z)
                .HasMaxLength(100);

            this.ToTable("His_SFJL");
            this.Property(t => t.Id).HasColumnName("Shou_FLS_ID")
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);

            this.HasRequired(t => t.Customer).WithMany(d => d.ChargeRecord).HasForeignKey(t => t.User_Id);//用户信息ID
            this.HasRequired(t => t.KindOfWaterUse).WithMany(d => d.ChargeRecord).HasForeignKey(t => t.Yong_SLB);//用水类别ID
            
        }
    }
}
